#include "Header.h"

class Two
{
	
public:

	void Calculate()
	{
		int64 sum = 4000000;
		int first = 1;
		int second = 2;
		int res = first + second;
		int64 ans = 2;

		while (res < sum)
		{
			if (res % 2 == 0)
			{
				ans += res;
			}

			first = second;
			second = res;
			res = first + second;
		}
		

		cout << ans << endl;
	}

};